package com.pmsystem.dao;

import com.pmsystem.pojo.KeyRecord;
import com.pmsystem.pojo.KeyRecordExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface KeyRecordMapper {
    long countByExample(KeyRecordExample example);

    int deleteByExample(KeyRecordExample example);

    int deleteByPrimaryKey(Integer recordId);

    int insert(KeyRecord record);

    int insertSelective(KeyRecord record);

    List<KeyRecord> selectByExample(KeyRecordExample example);

    KeyRecord selectByPrimaryKey(Integer recordId);

    int updateByExampleSelective(@Param("record") KeyRecord record, @Param("example") KeyRecordExample example);

    int updateByExample(@Param("record") KeyRecord record, @Param("example") KeyRecordExample example);

    int updateByPrimaryKeySelective(KeyRecord record);

    int updateByPrimaryKey(KeyRecord record);

    /**
     * 
     * <p>Title: findKeyRecord</p >  
     * <p>Description: 按一定条件查询借钥匙记录</p >  
     * @author 泽强
     * @param map
     * @return
     */
	List<KeyRecord> findKeyRecord(Map<String, Object> map);
}